package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.CommentReply;
import cn.wolfcode.trip.base.domain.CommentReply;
import cn.wolfcode.trip.base.query.CommentReplyQueryObj;
import com.github.pagehelper.PageInfo;

public interface ICommentReplyService {
    /**
     * 查询攻略点评中回复
     * @param qo
     * @return
     */
    PageInfo selectByStrategyCommentId(CommentReplyQueryObj qo);

    /**
     * 查询攻略点评中的回复数
     * @param qo
     * @return
     */
    int selectCountByStrategyCommentId(CommentReplyQueryObj qo);

    /**
     * 保存回复
     * @param commentReply
     */
    void saveReply(CommentReply commentReply);


    PageInfo listRepiersInfo(CommentReplyQueryObj qo);

    void updateState(int state, Long userId);

    void updateLikeNum(Long relationId);
}
